# name : logger: info/warn ifelse condition for nrow data.frame
# key : logger@log_ifelse_condtion_nrow_dataframe
# key : logger.log_ifelse_condtion_nrow_dataframe
# contributor: Shuguang Sun
# --
$1_${2:nrow} <- nrow(${1:dt})
logger::log_levels(
logger::as.loglevel(ifelse($1_$2 > 0, logger::INFO, logger::WARN)),
"Number of Rows in $1 is {$1_$2}$0"
)
# rm($1_$2)